<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--

    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.

-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<title>Hibernate Mapping Files and POJOs Wizard: Generation of Code</title>
<link rel="stylesheet" href="ide.css" title="Oracle BLAFDoc" type="text/css"/>
</head>

<body>
<p><a id="org.netbeans.modules.hibernate.wizards.HibernateRevengCodeGenWizardDescriptor" name="org.netbeans.modules.hibernate.wizards.HibernateRevengCodeGenWizardDescriptor"></a></p>
<div id="NBCSH5091"><!-- infolevel="all" infotype="General" --><a id="sthref756" name="sthref756"></a>
<h1>Hibernate Mapping Files and POJOs Wizard: Generation of Code</h1>
<a name="BEGIN" id="BEGIN"></a>
<p>Use to specify the options for generating the mapping files and POJOs. 
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG1204">
<param name="text" value="<html><u>How?</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>
<p>If you do not want to use the Hibernate mapping files, the wizard gives you the option of creating classes that use annotations for the mapping information. You can also choose to generate only the Hibernate mapping files.</p>
<p>You must have the following to complete this wizard:</p>
<ul>
<li>Hibernate configuration file that is named <code dir="ltr">hibernate.cfg.xml</code></li>
<li>Hibernate reverse engineering file that is named <code dir="ltr">hibernate.reveng.xml</code></li>
</ul>
<p>In this page you can specify the following options:</p>

<table summary="User interface elements and descriptions" dir="ltr" border="1" width="100%" frame="hsides" rules="groups" cellpadding="3" cellspacing="0">
<col width="34%" />
<col width="*" />
<thead>
<tr align="left" valign="top">
<th align="left" valign="bottom" id="r1c1-t10">Element</th>
<th align="left" valign="bottom" id="r1c2-t10">Description</th>
</tr>
</thead>
<tbody>
<tr align="left" valign="top">
<td align="left" id="r2c1-t10" headers="r1c1-t10">
<p>Hibernate Configuration File</p>
</td>
<td align="left" headers="r2c1-t10 r1c2-t10">Select the configuration file from the drop-down list.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r3c1-t10" headers="r1c1-t10">
<p>Reverse Engineering File</p>
</td>
<td align="left" headers="r3c1-t10 r1c2-t10">Select the reverse engineering file from the drop-down list.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r4c1-t10" headers="r1c1-t10">
<p>General Settings</p>
</td>
<td align="left" headers="r4c1-t10 r1c2-t10">Apply general settings to the code of the generated POJOs.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r5c1-t10" headers="r1c1-t10">
<p>&nbsp;&nbsp;&nbsp;&nbsp;JDK 5 Language Features</p>
</td>
<td align="left" headers="r5c1-t10 r1c2-t10">When selected the generated code will take advantage of Java language features such as generics and static imports that are supported by JDK 5.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r6c1-t10" headers="r1c1-t10">
<p>&nbsp;&nbsp;&nbsp;&nbsp;EJB 3 Annotations</p>
</td>
<td align="left" headers="r6c1-t10 r1c2-t10">When selected the generated POJOs use annotations for mapping information.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r7c1-t10" headers="r1c1-t10">
<p>Code Generation Settings</p>
</td>
<td align="left" headers="r7c1-t10 r1c2-t10">The Code Generation Settings determine which files are generated.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r8c1-t10" headers="r1c1-t10">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Domain Code (<code dir="ltr">.java</code>)</p>
</td>
<td align="left" headers="r8c1-t10 r1c2-t10">When selected, generate a POJO for each of the tables you specified in the wizard. When deselected, no POJOs are generated. 
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG1203">
<param name="text" value="<html><u>More</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r9c1-t10" headers="r1c1-t10">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Hibernate XML Mappings (<code dir="ltr">.hbm.xml</code>)</p>
</td>
<td align="left" headers="r9c1-t10 r1c2-t10">When selected, generate a mapping file (<code dir="ltr">.hbm.xml</code>) for each of the tables you specified in the wizard. When deselected no mapping files are generated.
<p>If you deselect both options, the IDE will only generate the <code dir="ltr">hibernate.reveng</code> file.</p>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r10c1-t10" headers="r1c1-t10">
<p>Project</p>
</td>
<td align="left" headers="r10c1-t10 r1c2-t10">(Read only) Specify the name of the project.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r11c1-t10" headers="r1c1-t10">Location</td>
<td align="left" headers="r11c1-t10 r1c2-t10">Specify the location of the package containing the generated mapping files and POJOs.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r12c1-t10" headers="r1c1-t10">Package</td>
<td align="left" headers="r12c1-t10 r1c2-t10">Specify the name of the package where the mapping files and POJOs are created. Select an existing package from the drop down list or type the name of a new package.</td>
</tr>
</tbody>
</table>
<br />
<!-- -->
<a id="NBCSH5101" name="NBCSH5101"></a>
<hr><p><b>Related Topics</b></p>
<p><i>Developing Applications with NetBeans IDE</i>, 
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG1193">
<param name="text" value="<html><u>&quot;Working with the Hibernate Framework&quot;</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>

<!-- -->
<!-- Start Footer -->


<table summary="" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td align="left" width="86%"><a href="legal_notice.htm">
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements; and to You under the Apache License, Version 2.0.</a>
</td>
</tr>
</table>
<!-- -->
</body>
</html>
